package com.csy.admin.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author csy
 * @since 2018-09-17
 */
@TableName("resource_class")
public class ResourceClass extends Model<ResourceClass> {

    private static final long serialVersionUID = 1L;

    /**
     * 资源分类ID
     */
    @TableId(value = "CLASS_ID", type = IdType.AUTO)
    private Integer classId;
    /**
     * 分类名称
     */
    @TableField("CLASS_NAME")
    private String className;
    /**
     * 作废标志
     */
    @TableField("FLAG_INVALID")
    private Integer flagInvalid;
    /**
     * 所属资源类型
     */
    @TableField("resource_type_id")
    private Integer resourceTypeId;

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Integer getFlagInvalid() {
        return flagInvalid;
    }

    public void setFlagInvalid(Integer flagInvalid) {
        this.flagInvalid = flagInvalid;
    }

    public Integer getResourceTypeId() {
        return resourceTypeId;
    }

    public void setResourceTypeId(Integer resourceTypeId) {
        this.resourceTypeId = resourceTypeId;
    }

    @Override
    protected Serializable pkVal() {
        return this.classId;
    }

    @Override
    public String toString() {
        return "ResourceClass{" +
        ", classId=" + classId +
        ", className=" + className +
        ", flagInvalid=" + flagInvalid +
        "}";
    }
}
